//
//  SEGSessionMessageUserDetailTableViewCell.m
//  Commom
//
//  Created by Clavis on 2019/9/29.
//

#import "SEGSessionMessageUserDetailTableViewCell.h"

@implementation SEGSessionMessageUserDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    self.contentLabel = ({
        UILabel *label = [[UILabel alloc] init];
        [self.contentView addSubview:label];
        label.textColor = kColor_1;
        label.font = kFont_15;
        label.numberOfLines = 0;
        label;
    });
    [self.contentLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(60);
        make.top.mas_equalTo(17);
        make.bottom.mas_equalTo(-17);
        make.right.mas_equalTo(-15);
        make.height.mas_greaterThanOrEqualTo(16);
    }];
    
    self.tipLabel = ({
        UILabel *label = [[UILabel alloc] init];
        [self.contentView addSubview:label];
        label.textColor = kColor_1;
        label.font = kFont_15;
        label;
    });
    [self.tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.top.equalTo(self.contentLabel.mas_top);
    }];
}

@end
